@import '@/style/app.scss';

.page-account{
  height: 100%;
  background:$color-back;

  .header{
    width: 100%;
    height: 150px;
    box-sizing: border-box;
    padding: 70px 30px 30px;
    background: #fff;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;

    .logo{
      float: left;
      margin-right: 30px;
      height: 50px;
    }

    .name{
      font-size: 20px;
      line-height: 25px;
      color: $color-title;
    }

    .account{
      font-size: 14px;
      line-height: 18px;
      color: $color-content;
      padding-top: 5px;
    }

    .tools{
      float: right;
      margin-top: 20px;

      .icon{
        text-align: right;
        padding-left: 20px;
        color: $color-icon;
        font-size: 30px;
        cursor: pointer;

        &:hover{
          color: $color;
        }

        &.error{
          color: $color-error;
        }
      }
    }

    .template{
      overflow: hidden;

      .item{
        background-color: $color-back;
        padding: 20px;
        margin-bottom: 20px;
        overflow: hidden;
        
        .img{
          width: 100px;
          height: 90px;
          float: left;
          text-align: center;
          border-radius: 5px;
          margin-right: 20px;

          img{
            height: 100%;
          }
        }

        .right{
          overflow: hidden;
        }

        .title{
          height: 50px;
          line-height: 25px;
          font-size: 14px;
          color: $color-font;
          margin-bottom: 10px;
        }
      }
    }
  }

  .content{
    padding: 190px 10% 30px;
    position: relative;
  }

  &-index{
    .plugin{
      padding: 30px 0;
      text-align: center;
      position: relative;

      img{
        width: 80px;
        cursor: pointer;
        transform: perspective(1px) translateZ(0);
        transition-duration: 0.3s;

        &:hover{
          transform: scale(1.1);
        }
      }

      .name{
        padding-top: 10px;
        font-size: 14px;
        color: $color-font;
      }

      .pin{
        position: absolute;
        right: 5px;
        top: 5px;
        font-size: 20px;
        color: $color-icon;
        display: none;
        cursor: pointer;

        &.on{
          color: $color;
        }
      }

      &:hover{
        .pin{
          display: block;
        }
      }
    }
  }
}

.page-plugin{
  position: relative;
  
  .header{
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: $index;
    display: flex;
    align-items: center;

    &.white{
      .icon{
        color: #fff;
      }

      .box{
        .title{
          color: #fff;
        }
        .content{
          color: #fff;
        }
      }
    }

    .icon{
      font-size: 30px;
      line-height: 30px;
      color: $color-icon;
      margin: 7px 2px;
      padding: 3px;
      border-radius: 100%;
      cursor: pointer;

      &:hover{
        color: $color;
      }

      &.on{
        color: $color;
        background-color: $color-back;

        &:hover{
          background-color: $color;
          color: #fff;
        }
      }
    }

    .img{
      height: 50px;
      margin-left: 10px;
      position: relative;
    }

    .box{
      overflow: hidden;
      padding-left: 15px;

      .title{
        font-size: 18px;
        color: $color-title;
      }
  
      .content{
        color: $color-content;
        font-size: 14px;
        padding-top: 7px;
      }
    }
  }

  .local-icon{
    top: 0;
    left: 0;
    right: 0;
    position: absolute;
    padding-top: 7px;
    width: 100%;
    z-index: $index;
    i{
      width: 30%;
      height: 5px;
      margin: 0 auto;
      border-radius: 20px;
      background: rgba(0, 0, 0, .2);
      display: block;
    }

    &.on{
      animation: fadeOut;
      animation-duration: .4s;
      animation-fill-mode: forwards;
    }
  }

  .local{
    width: 100%;
    padding: 20px 0;
    z-index: $index + 5;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    display: none;

    &.on{
      display:block;

      .plugin{
        animation: slideInDown;
        animation-duration: .4s;
      }
    }

    .plugin{
      width: 95%;
      display: flex;
      justify-content: center;
      margin: 0 auto;
      background: rgba(0, 0, 0, .8);
      border-radius: 15px;
      padding: 10px;

      .item{
        margin: 10px;
        text-align: center;

        .name{
          padding-top: 5px;
          color: #fff;
          font-size: 12px;
        }

        img{
          width: 50px;
          height: 50px;
          cursor: pointer;
          transform: perspective(1px) translateZ(0);
          transition-duration: 0.3s;

          &:hover{
            transform: scale(1.1);
          }
        }
      }
    }
  }
}